package pub.tbc.hh.payment.service.weixin;

import org.springframework.core.env.Environment;
import pub.tbc.hh.payment.service.PaymentService;
import pub.tbc.hh.payment.service.PaymentType;

import javax.annotation.Resource;
import java.util.Map;

/**
 * 微信公众号支付
 *
 * @auth tbc on 2018/5/11.
 */
public class WeixinWebbased implements PaymentService {

    @Resource
    private Environment environment;


    private boolean checkParam(Map<String, String> payParam) {

        return true;
    }


    @Override
    public String pay(Map<String, String> payParam, PaymentType paymentType) {
        if (!checkParam(payParam))
            throw new RuntimeException("支付参数校验失败");
        return null;
    }
}
